import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';

import {ProgramListComponent} from './program-list/program-list.component';
import {NotAuthorizeComponent} from './not-authorize/not-authorize.component';
import {NotReleaseComponent} from './not-release/not-release.component';
import {HasReleaseComponent} from './has-release/has-release.component';
import {HasFreezeComponent} from './has-freeze/has-freeze.component';
import {ShowComponent} from './show/show.component';
import {EditComponent} from './edit/edit.component';
import {ClearCacheComponent} from './clear-cache/clear-cache.component';

export const routes: Routes = [

  {
    path: 'program-list',
    component: ProgramListComponent,
    children: []
  },
  {
    path: 'not-authorize',
    component: NotAuthorizeComponent,
    children: []
  },
  {
    path: 'not-release',
    component: NotReleaseComponent,
    children: []
  },
  {
    path: 'has-release',
    component: HasReleaseComponent,
    children: []
  },
  {
    path: 'has-freeze',
    component: HasFreezeComponent,
    children: []
  },
  {
    path: 'show/:id',
    component: ShowComponent,
    children: []
  },
  {
    path: 'edit/:id',
    component: EditComponent,
    children: []
  },
  {
    path: 'clear-cache',
    component: ClearCacheComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
